package com.wanmait.employment.webController;

import com.wanmait.employment.entity.EducationalExperience;
import com.wanmait.employment.entity.JobExperience;
import com.wanmait.employment.service.EducationalExperienceService;
import com.wanmait.employment.service.JobExperienceService;
import com.wanmait.employment.util.AjaxResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("web/JobExperience")
public class WebJobExperienceController {
    @Resource
    private JobExperienceService jobExperienceService;

    @GetMapping("JobExperience")
    public AjaxResult getFinancingStage(Integer userinfoId){
        List<JobExperience> jobExperienceList=jobExperienceService.selectId(userinfoId);
        return AjaxResult.success("success").put("jobExperienceList",jobExperienceList);
    }
}
